<?php

/*
 *    Document   : Config
 *   Created on : May 18, 2011, 1:44:49 AM
 *    Author     : ClarkT AKA FalleN
 *    Company    : Amodity
 *    Web        : http://www.amodity.com
 *    Copyright  : 2011
 */

class MY_Config extends CI_Config {


    public function __construct() {
        parent::__construct();
    }

    function db_config_fetch() {
        $CI = & get_instance();
        $query = $CI->db->get('settings');

        foreach ($query->result() as $row) {
            $this->set_item($row->option_name, $row->option_value);
        }
    }

}

?>
